package com.starlinkdt.common.storage.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "storage.minio")
@Data
public class MinioConfig {

    /**
     * Api接口路径
     */
    private String endpoint;
    /**
     * 访问密钥AccessKey ID
     */
    private String accessKeyID;

    /**
     * 访问密钥AccessKey Secret
     */
    private String secretAccessKey;
    /**
     * Default bucketName
     */
    private String bucketName;

    /**
     * 设置临时访问凭证的有效时间为3600秒
     */
    private Long durationSeconds;
}
